package cn.layfolk.uaa.mapper;

import cn.layfolk.uaa.domain.TPermission;
import cn.layfolk.daimao.vo.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TUserMapper extends BaseMapper<TUser> {

    /**
     * 根据用户id获取所有权限
     */
    List<TPermission> findPermissionsByUserId(Integer id);
}
